package com.dyna.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;


/**
 * @author zhoucaiwang
 * @date 2023/8/17
 */

@Data
@ApiModel(value = "登录用户信息")
public class LoginUser implements Serializable {

    private final static long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户uuid")
    private Long userId;

    @ApiModelProperty(value = "租户id")
    private Long tenantId;

    @ApiModelProperty(value = "登录用户名")
    private String username;

    @ApiModelProperty(value = "用户姓名")
    private String nickName;

    @ApiModelProperty(value = "手机号")
    private String phone;

    private String token;

    @ApiModelProperty(value = "登录用户地址")
    private String ipAddress;

    @ApiModelProperty(value = "微信openid用户标识")
    private String openId;

    @ApiModelProperty(value = "徽章id")
    private Long itemId;

    @ApiModelProperty(value = "授权范围")
    private List<String> scopes;

    @ApiModelProperty(value = "用户角色")
    private List<SysRoleDto> roleList;

}
